import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import { createPinia } from 'pinia'
import { Button, Cell, CellGroup, Field, Form, Icon, Tabbar, TabbarItem, NavBar, Toast, List, PullRefresh, Search, Card, Tag, Progress, Dialog, ActionSheet, Divider, Empty, Uploader, Popup, Picker, DatetimePicker, SwipeCell, Checkbox, CheckboxGroup, Radio, RadioGroup, Switch, Stepper, Rate, Slider, NoticeBar, CountDown, Image, Lazyload, Skeleton, Loading, PasswordInput, NumberKeyboard, SubmitBar, CheckboxCell } from 'vant';
import 'vant/lib/index.css';

const app = createApp(App)
const pinia = createPinia()

// 全局注册 Vant 组件
app.use(Button)
app.use(Cell)
app.use(CellGroup)
app.use(Field)
app.use(Form)
app.use(Icon)
app.use(Tabbar)
app.use(TabbarItem)
app.use(NavBar)
app.use(Toast)
app.use(List)
app.use(PullRefresh)
app.use(Search)
app.use(Card)
app.use(Tag)
app.use(Progress)
app.use(Dialog)
app.use(ActionSheet)
app.use(Divider)
app.use(Empty)
app.use(Uploader)
app.use(Popup)
app.use(Picker)
app.use(DatetimePicker)
app.use(SwipeCell)
app.use(Checkbox)
app.use(CheckboxGroup)
app.use(Radio)
app.use(RadioGroup)
app.use(Switch)
app.use(Stepper)
app.use(Rate)
app.use(Slider)
app.use(NoticeBar)
app.use(CountDown)
app.use(Image)
app.use(Lazyload)
app.use(Skeleton)
app.use(Loading)
app.use(PasswordInput)
app.use(NumberKeyboard)
app.use(SubmitBar)
app.use(CheckboxCell)

app.use(pinia)
app.use(router)
app.mount('#app')